import React from 'react'
import { createStackNavigator } from '@react-navigation/stack';

// 创建导航路由器
const IndexStackNavigator = createStackNavigator()

// 引入页面
import Video from './Video'
import Room from './Room'
import Search from './Search'

const Index = () => {
  return (
    <IndexStackNavigator.Navigator>
      <IndexStackNavigator.Screen 
        name="Video"
        component={Video}
        options={{
          headerShown: false
        }}
      />
      <IndexStackNavigator.Screen name="Room" component={Room} />
      <IndexStackNavigator.Screen name="Search" component={Search} />
    </IndexStackNavigator.Navigator>
  )
}

export default Index
